package com.ruoyi.information.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.information.mapper.InformationMapper;
import com.ruoyi.information.domain.Information;
import com.ruoyi.information.service.IInformationService;

/**
 * informationService业务层处理
 * 
 * @author sy
 * @date 2024-11-05
 */
@Service
public class InformationServiceImpl implements IInformationService 
{
    @Autowired
    private InformationMapper informationMapper;

    /**
     * 查询information
     * 
     * @param informationId information主键
     * @return information
     */
    @Override
    public Information selectInformationByInformationId(Long informationId)
    {
        return informationMapper.selectInformationByInformationId(informationId);
    }

    /**
     * 查询information列表
     * 
     * @param information information
     * @return information
     */
    @Override
    public List<Information> selectInformationList(Information information)
    {
        return informationMapper.selectInformationList(information);
    }

    /**
     * 新增information
     * 
     * @param information information
     * @return 结果
     */
    @Override
    public int insertInformation(Information information)
    {
        return informationMapper.insertInformation(information);
    }

    /**
     * 修改information
     * 
     * @param information information
     * @return 结果
     */
    @Override
    public int updateInformation(Information information)
    {
        return informationMapper.updateInformation(information);
    }

    /**
     * 批量删除information
     * 
     * @param informationIds 需要删除的information主键
     * @return 结果
     */
    @Override
    public int deleteInformationByInformationIds(Long[] informationIds)
    {
        return informationMapper.deleteInformationByInformationIds(informationIds);
    }

    /**
     * 删除information信息
     * 
     * @param informationId information主键
     * @return 结果
     */
    @Override
    public int deleteInformationByInformationId(Long informationId)
    {
        return informationMapper.deleteInformationByInformationId(informationId);
    }

    @Override
    public Information selectInformationByIsbn(String isbn) {
        return informationMapper.selectInformationByIsbn(isbn);
    }

}
